
<div class="school_list">
	<?php foreach($the_list as $school):?>
		<div class="school_list_row">
			<img src="http://localhost/assets/images/no_picture_profile.JPG">
			<div class="school_info">
				<?php $school = $school[0]?>
				<p>School Name: <?php echo $school["name"]; ?></p>

				
			</div>
			<?php if(!$favorites_page):?><?php /*is this is not the favorites page, display the favorites button*/?>
			<form method='POST' action='#'>
				
				<input type='submit' name='favorite_school' value='add to favorites'><br>
			</form>
			<?php endif?>
		</div>
		<?php echo "<br>"?>
	<?php endforeach?>
</div>